Optimal. Leaf size=114 \[ \frac {a^3 \tan ^5(c+d x)}{5 d}+\frac {5 a^3 \tan ^3(c+d x)}{3 d}+\frac {4 a^3 \tan (c+d x)}{d}+\frac {13 a^3 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {3 a^3 \tan (c+d x) \sec ^3(c+d x)}{4 d}+\frac {13 a^3 \tan (c+d x) \sec (c+d x)}{8 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2757, 3768, 3770, 3767} \[ \frac {a^3 \tan ^5(c+d x)}{5 d}+\frac {5 a^3 \tan ^3(c+d x)}{3 d}+\frac {4 a^3 \tan (c+d x)}{d}+\frac {13 a^3 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {3 a^3 \tan (c+d x) \sec ^3(c+d x)}{4 d}+\frac {13 a^3 \tan (c+d x) \sec (c+d x)}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2757
Rule 3767
Rule 3768
Rule 3770
Rubi steps
\begin {align*} \int (a+a \cos (c+d x))^3 \sec ^6(c+d x) \, dx &=\int \left (a^3 \sec ^3(c+d x)+3 a^3 \sec ^4(c+d x)+3 a^3 \sec ^5(c+d x)+a^3 \sec ^6(c+d x)\right ) \, dx\\ &=a^3 \int \sec ^3(c+d x) \, dx+a^3 \int \sec ^6(c+d x) \, dx+\left (3 a^3\right ) \int \sec ^4(c+d x) \, dx+\left (3 a^3\right ) \int \sec ^5(c+d x) \, dx\\ &=\frac {a^3 \sec (c+d x) \tan (c+d x)}{2 d}+\frac {3 a^3 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {1}{2} a^3 \int \sec (c+d x) \, dx+\frac {1}{4} \left (9 a^3\right ) \int \sec ^3(c+d x) \, dx-\frac {a^3 \operatorname {Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-\tan (c+d x)\right )}{d}-\frac {\left (3 a^3\right ) \operatorname {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-\tan (c+d x)\right )}{d}\\ &=\frac {a^3 \tanh ^{-1}(\sin (c+d x))}{2 d}+\frac {4 a^3 \tan (c+d x)}{d}+\frac {13 a^3 \sec (c+d x) \tan (c+d x)}{8 d}+\frac {3 a^3 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {5 a^3 \tan ^3(c+d x)}{3 d}+\frac {a^3 \tan ^5(c+d x)}{5 d}+\frac {1}{8} \left (9 a^3\right ) \int \sec (c+d x) \, dx\\ &=\frac {13 a^3 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {4 a^3 \tan (c+d x)}{d}+\frac {13 a^3 \sec (c+d x) \tan (c+d x)}{8 d}+\frac {3 a^3 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {5 a^3 \tan ^3(c+d x)}{3 d}+\frac {a^3 \tan ^5(c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 1.43, size = 487, normalized size = 4.27 \[ -\frac {a^3 \sec (c) \sec ^5(c+d x) \left (1440 \sin (2 c+d x)-1500 \sin (c+2 d x)-1500 \sin (3 c+2 d x)-3040 \sin (2 c+3 d x)-390 \sin (3 c+4 d x)-390 \sin (5 c+4 d x)-608 \sin (4 c+5 d x)+975 \cos (2 c+3 d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+975 \cos (4 c+3 d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+195 \cos (4 c+5 d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+195 \cos (6 c+5 d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+1950 \cos (d x) \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )\right )+1950 \cos (2 c+d x) \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )\right )-975 \cos (2 c+3 d x) \log \left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )-975 \cos (4 c+3 d x) \log \left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )-195 \cos (4 c+5 d x) \log \left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )-195 \cos (6 c+5 d x) \log \left (\sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )-4640 \sin (d x)\right )}{3840 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.97, size = 124, normalized size = 1.09 \[ \frac {195 \, a^{3} \cos \left (d x + c\right )^{5} \log \left (\sin \left (d x + c\right ) + 1\right ) - 195 \, a^{3} \cos \left (d x + c\right )^{5} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (304 \, a^{3} \cos \left (d x + c\right )^{4} + 195 \, a^{3} \cos \left (d x + c\right )^{3} + 152 \, a^{3} \cos \left (d x + c\right )^{2} + 90 \, a^{3} \cos \left (d x + c\right ) + 24 \, a^{3}\right )} \sin \left (d x + c\right )}{240 \, d \cos \left (d x + c\right )^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.54, size = 138, normalized size = 1.21 \[ \frac {195 \, a^{3} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - 195 \, a^{3} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - \frac {2 \, {\left (195 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 910 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 1664 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 1330 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 765 \, a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{5}}}{120 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 124, normalized size = 1.09 \[ \frac {13 a^{3} \sec \left (d x +c \right ) \tan \left (d x +c \right )}{8 d}+\frac {13 a^{3} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8 d}+\frac {38 a^{3} \tan \left (d x +c \right )}{15 d}+\frac {19 a^{3} \tan \left (d x +c \right ) \left (\sec ^{2}\left (d x +c \right )\right )}{15 d}+\frac {3 a^{3} \left (\sec ^{3}\left (d x +c \right )\right ) \tan \left (d x +c \right )}{4 d}+\frac {a^{3} \tan \left (d x +c \right ) \left (\sec ^{4}\left (d x +c \right )\right )}{5 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.03, size = 179, normalized size = 1.57 \[ \frac {16 \, {\left (3 \, \tan \left (d x + c\right )^{5} + 10 \, \tan \left (d x + c\right )^{3} + 15 \, \tan \left (d x + c\right )\right )} a^{3} + 240 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} a^{3} - 45 \, a^{3} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{3} - 5 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 60 \, a^{3} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )}}{240 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.63, size = 170, normalized size = 1.49 \[ \frac {13\,a^3\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{4\,d}-\frac {\frac {13\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9}{4}-\frac {91\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{6}+\frac {416\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{15}-\frac {133\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{6}+\frac {51\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}-5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________